(function(){
	angular.module('app').factory('darenListComponentService', darenListComponentService);

	darenListComponentService.$inject = ['util','$q'];

	function darenListComponentService(util,$q){
		return {
			getDaren: _getDaren
		}

		function _getDaren(json){

			var defer = $q.defer();

			util.$get({
				url:'/marketconditions/daren/getDarens.htm',
				data:json
			}).then(function(resp){

				defer.resolve(resp.value);
			},function(err){


				defer.reject(err);
			});

			return defer.promise;
		}
	}
})();